﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Bilibili
{
    class Utils
    {
        public static string HttpGet(string url) {
            string html = null;
            HttpWebRequest http = (HttpWebRequest)WebRequest.Create(url);
            using (StreamReader stream = new StreamReader(http.GetResponse().GetResponseStream(), Encoding.UTF8))
                html = stream.ReadToEnd();
                return html;
        }
    }
}
